import Vue from 'vue'
import Vuex from 'vuex'

import user from './modules/user'
import chat from './modules/chat'
import Login from './modules/login'
import getters from './getters'
import Agora from './agora';
import createPersistedState from 'vuex-persistedstate';

Vue.use(Vuex)
const store = new Vuex.Store({
    modules: {
        user,
        chat,
        Agora,
        Login
    },
    getters,
    plugins: [createPersistedState()],
})
export default store